<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

	<form:form commandName="project" cssClass="form-horizontal" role="form">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="name_create">姓名</label>
			<div class="col-sm-4">
				<input type="text" name="name" id="name_create"  class="form-control" required/>
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="phone_create">手机号</label>
			<div class="col-sm-4">
				<input type="text" name="phone" id="phone_create" class="form-control" required/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="password_create">密码</label>
			<div class="col-sm-4">
				<input type="password" name="password" id="password_create" class="form-control" required/>
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="rePassword_create">确认密码</label>
			<div class="col-sm-4">
				<input type="password" name="rePassword" id="rePassword_create" class="form-control" required/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="branchType_create">单位类型</label>
			<div class="col-sm-4">
				<select name="branchType" id="branchType_create" class="form-control" required>
					<option value="">请选择</option>
					<option value="0">业主单位</option>
					<option value="1">审批部门</option>
					<option value="2">管理员</option>
					<option value="4">督查组</option>
					<option value="6">领导</option>
				</select>
			</div>
			<label class="col-sm-2 control-label no-padding-right" for="branch_create">单位名称</label>
			<div class="col-sm-4">
				<select name="branch" id="branch_create" class="form-control"required>
					<option value="">请选择</option>
					<c:forEach items="${branchs}" var="branchs">
						<option value="${branchs}">${branchs}</option>
					</c:forEach>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="role_create">角色</label>
			<div class="col-sm-4">
				<select name="role" id="role_create" class="form-control" required>
					<option value="">请选择</option>
					<option value="经办人">经办人</option>
					<option value="责任人">责任人</option>
					<option value="领导">领导</option>
				</select>
			</div>
		</div>
	</form:form>
<script>
    jQuery(function($) {
        $(".date-picker").datepicker({
            inline: true,
            format:"yyyymmdd",
            autoclose: true,
            todayHighlight: true,
            language: 'cn'
        }).next().on(ace.click_event, function(){
            $(this).prev().focus();
        });
    });
    <%--//行业分类--%>
    <%--var industryType = ${project.industryType};--%>
    <%--var industryTypes = $("#industryType_edit>option");--%>
    <%--for (var i = 0; i < industryTypes.length; i++) {--%>
        <%--if (industryTypes[i].value == industryType) {--%>
            <%--industryTypes[i].setAttribute("selected", "true");--%>
        <%--} else {--%>
            <%--industryTypes[i].removeAttribute("selected");--%>
        <%--}--%>
    <%--}--%>
    <%--//进度分类--%>
    <%--var schedCode = ${project.schedCode};--%>
    <%--var schedCodes = $("#schedCode_edit>option");--%>
    <%--for (var i = 0; i < schedCodes.length; i++) {--%>
        <%--if (schedCodes[i].value == schedCode) {--%>
            <%--schedCodes[i].setAttribute("selected", "true");--%>
        <%--} else {--%>
            <%--schedCodes[i].removeAttribute("selected");--%>
        <%--}--%>
    <%--}--%>
    <%--//项目分类--%>
    <%--var projectType = ${project.projectType};--%>
    <%--var projectTypes = $("#projectType_edit>option");--%>
    <%--for (var i = 0; i < projectTypes.length; i++) {--%>
        <%--if (projectTypes[i].value == projectType) {--%>
            <%--projectTypes[i].setAttribute("selected", "true");--%>
        <%--} else {--%>
            <%--projectTypes[i].removeAttribute("selected");--%>
        <%--}--%>
    <%--}--%>
    <%--//修改项目（确认修改）--%>
    <%--$("#editPro").click(function () {--%>
        <%--var win = confirm("温馨提示：确认修改该项目?");--%>
        <%--if (win == true) {--%>
            <%--executeSaveOrUpdate({--%>
                <%--formId: "#formDialog form",--%>
                <%--dialogId: "#formDialog",--%>
                <%--url: "/projects/editProjectInfo",--%>
                <%--tableId: "#gridTable",--%>
                <%--successMessage: "提交成功",--%>
                <%--successTitle: '保存对话框',--%>
                <%--//failMessage: '保存失败',--%>
                <%--failTitle: '消息对话框'--%>
            <%--});--%>
		<%--}--%>
	<%--})--%>

</script>